plat/marvell: comphy: Add support for SFI on Lane 4
authorKonstantin Porotchkin <[email protected]>
Sun, 21 Oct 2018 13:48:33 +0000 (16:48 +0300)
committerKonstantin Porotchkin <[email protected]>
Tue, 4 Dec 2018 12:09:44 +0000 (14:09 +0200)
Add static configuration for SFI+ 10Gbps interface on SERDES
Lane 4.
This is just a copy of Lane 2 static values, not optimized.
Board-to-board iperf test shows up to 6Gbps transfer speed.

Change-Id: I024d2ac132f7fa6c342a64367f3dca2123a27e97
Signed-off-by: Konstantin Porotchkin <[email protected]>
Reviewed-by: Igal Liberman <[email protected]>
plat/marvell/a8k/a80x0/board/phy-porting-layer.h

index 38497fb5367ef846b4d1e00f861b8a8591c1dea8..abd85b5d254e3356b1abc63c916a888eb6cedf31 100644 (file)
@@ -27,7 +27,14 @@ static const struct xfi_params
                          .g1_rx_selmupf = 0x2, .g1_rx_selmupi = 0x2,
                          .valid = 0x1 }, /* Comphy2 */
                        { 0 }, /* Comphy3 */
-                       { 0 }, /* Comphy4 */
+                       { .g1_ffe_res_sel = 0x3, .g1_ffe_cap_sel = 0xf,
+                         .align90 = 0x5f,
+                         .g1_dfe_res = 0x2, .g1_amp = 0x1c, .g1_emph = 0xe,
+                         .g1_emph_en = 0x1, .g1_tx_amp_adj = 0x1,
+                         .g1_tx_emph_en = 0x1, .g1_tx_emph = 0x0,
+                         .g1_rx_selmuff = 0x1, .g1_rx_selmufi = 0x0,
+                         .g1_rx_selmupf = 0x2, .g1_rx_selmupi = 0x2,
+                         .valid = 0x1 }, /* Comphy4 */
                        { 0 }, /* Comphy5 */
                },
 
@@ -44,7 +51,14 @@ static const struct xfi_params
                          .g1_rx_selmupf = 0x2, .g1_rx_selmupi = 0x2,
                          .valid = 0x1 }, /* Comphy2 */
                        { 0 }, /* Comphy3 */
-                       { 0 }, /* Comphy4 */
+                       { .g1_ffe_res_sel = 0x3, .g1_ffe_cap_sel = 0xf,
+                         .align90 = 0x5f,
+                         .g1_dfe_res = 0x2, .g1_amp = 0x1c, .g1_emph = 0xe,
+                         .g1_emph_en = 0x1, .g1_tx_amp_adj = 0x1,
+                         .g1_tx_emph_en = 0x1, .g1_tx_emph = 0x0,
+                         .g1_rx_selmuff = 0x1, .g1_rx_selmufi = 0x0,
+                         .g1_rx_selmupf = 0x2, .g1_rx_selmupi = 0x2,
+                         .valid = 0x1 }, /* Comphy4 */
                        { 0 }, /* Comphy5 */
                },
        },